package com.itheima.store.dao;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.itheima.store.domain.BookBorrow;

public interface BookBorrowDao {

	String addBookBorrow(BookBorrow bb) throws SQLException;

	Integer findCountByUserId(String user_id) throws SQLException;

	List<BookBorrow> findPageByUserId(String user_id, int begin, Integer pageSize) throws SQLException;

	void removeCart(String book_id) throws SQLException;

	BookBorrow findAppBybookBorrId(String bookBorrowing_id) throws SQLException;

	void updateBookBorrow(BookBorrow bb) throws SQLException;

	void updateBookBorrow(String bookBorrowing_id, String total) throws SQLException;

	void deleteBookBorrAllApp(String user_id) throws SQLException;

	List findAppByUserId(String user_id) throws SQLException;

	Integer findCount(Integer bstatus) throws SQLException;

	List<BookBorrow> findPageByStatus(Integer bstatus, int begin, Integer pageSize) throws SQLException;

	void updateBookBorrowStatus(String bookBorrowing_id,String flag) throws SQLException;
	
	List<BookBorrow> findByOid(String oids) throws SQLException;

	void updateRenewDays(String bookBorrowing_id, String renewDays) throws SQLException;

	BookBorrow findByBookId(String books_id, String user_id) throws SQLException;

	void updateTotal(String bookBorrowing_id, Integer total, Date expeReturnTime) throws SQLException;

	void updateBookTotal(String book_id, Integer tots, Integer flag) throws SQLException;

	

}
